<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue directives</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
      <div v-color="red">{{message}}</div>
    </div>
</body>
<script>
    var app9 = new Vue({
        el: "#app",
        data:{
            message: 'Hello Vue!',
            red: "red"
        },
        directives: {
            color(el,bindings){
                console.log(arguments);
                el.style.color = bindings.value;
            }
        }
      
    })
</script>

</html>